<?php
require_once ('scripts.php');
$action=$_REQUEST['action'];
	if($action=='gettowercompanies')
	{   
	   $start=$_POST['start'];
	   $count=$_POST['count'];
	   $searchkey=$_POST['searchkey'];
             $company_details = CompanyDAOImpl::getInstance()->getCompaniesByType('Tower Company',$start,$count,$searchkey);
           
		$data = array("total_count"=>$company_details->count,"companylist"=>$company_details->source);
		echo json_encode($data);
	}
	
?>